package Frame;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JComboBox;
import java.awt.GridLayout;
import javax.swing.JTextArea;
import java.awt.FlowLayout;
import javax.swing.JTable;
import java.awt.List;
import java.awt.Choice;
import javax.swing.JTextField;
import java.awt.Button;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JSpinner;
import javax.swing.JScrollPane;
import java.awt.Font;
import java.awt.Color;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;
import java.awt.SystemColor;

public class PasserNouvelleCommande extends JFrame {

	private JPanel contentPane;
	private JTable tblPlatPrix;
	private JTable tblSommaire;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					PasserNouvelleCommande frame = new PasserNouvelleCommande();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public PasserNouvelleCommande() {
		setTitle("Gestion de restaurant");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 564, 429);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(null);
		setContentPane(contentPane);
		
		JButton btnRetour = new JButton("Retour");
		btnRetour.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnRetour.setBounds(449, 34, 89, 33);
		contentPane.add(btnRetour);
		
		JLabel lblPasserUneNouvelle = new JLabel("Passer une nouvelle commande");
		lblPasserUneNouvelle.setFont(new Font("Tahoma", Font.PLAIN, 28));
		lblPasserUneNouvelle.setBounds(10, 34, 407, 28);
		contentPane.add(lblPasserUneNouvelle);
		
		JComboBox cbRestaurant = new JComboBox();
		cbRestaurant.setBounds(10, 73, 148, 23);
		contentPane.add(cbRestaurant);
		
		JButton btnRetirer = new JButton("Retirer");
		btnRetirer.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnRetirer.setBounds(449, 117, 89, 37);
		contentPane.add(btnRetirer);
		
		JSpinner spinner = new JSpinner();
		spinner.setFont(new Font("Tahoma", Font.PLAIN, 15));
		spinner.setBounds(10, 348, 54, 32);
		contentPane.add(spinner);
		
		JLabel lblSommaire = new JLabel("Sommaire");
		lblSommaire.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblSommaire.setBounds(221, 106, 89, 14);
		contentPane.add(lblSommaire);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 131, 175, 195);
		contentPane.add(scrollPane);
		
		tblPlatPrix = new JTable();
		tblPlatPrix.setBackground(Color.BLACK);
		tblPlatPrix.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"Plat", "Prix"
			}
		));
		scrollPane.setViewportView(tblPlatPrix);
		
		JScrollPane scrollPane_1 = new JScrollPane();
		scrollPane_1.setBounds(221, 131, 205, 195);
		contentPane.add(scrollPane_1);
		
		tblSommaire = new JTable();
		tblSommaire.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"Plat", "Quantit\u00E9", "Sous-Total"
			}
		));
		scrollPane_1.setViewportView(tblSommaire);
		
		JButton btnAjouter = new JButton("Ajouter");
		btnAjouter.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnAjouter.setBounds(93, 348, 89, 33);
		contentPane.add(btnAjouter);
		
		JButton btnConfirmerCommande = new JButton("Confirmer Commande");
		btnConfirmerCommande.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnConfirmerCommande.setBounds(221, 348, 255, 33);
		contentPane.add(btnConfirmerCommande);
	}
}
